package com.yunzhou.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "spring.mail") // 表明当前类为配置属性类
@Data
public class EmailProperties {
    private String username; // 发送者邮箱
}
